package org.vincen.helloworld.slf4jwithlogback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.util.StatusPrinter;

public class HelloWorld1 {

	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger(HelloWorld1.class);
		logger.debug("hello world {}", "this is vincen's input");
		
		//print logback internal state
		LoggerContext context = (LoggerContext)LoggerFactory.getILoggerFactory();
		StatusPrinter.print(context);
		
		//print root logger
//		Logger rootLogger = LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
//		rootLogger.debug("this is root logger");
	}

}
